<!DOCTYPE html>
<html>
    <head>
        <title>slice的实现</title>
        <script src="../../src/array/slice.js"></script>
    </head>
    <body>
        <script>
            const arr = [1, 2, 3, 4, 5]
            const result = slice(arr, 1, 3)
            console.log(result) // [2, 3]
        </script>
    </body>
</html>